package com.xht.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xht.domain.ResponseResult;
import com.xht.domain.dto.AddArticleDto;
import com.xht.domain.dto.ArticleChangeStatusDto;
import com.xht.domain.entity.Article;
import com.xht.vo.AdminUpdateArticleVo;

public interface ArticleService  extends IService<Article> {


    ResponseResult hostArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult AdminList(Integer pageNum, Integer pageSize, String title, String summary, Long categoryId);

    ResponseResult fix_ReshowArticle(Integer id);

    ResponseResult fix_UpdateArticle(AdminUpdateArticleVo adminUpdateArticleVo);

    ResponseResult deleteArticle(Integer id);

    ResponseResult changeStatus(ArticleChangeStatusDto articleChangeStatusDto);
}
